$font-common-family: "PingFangSC-Semibold, PingFang SC";

@mixin abs-vertical-center {
  /* 垂直居中 */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.card-router-container {
  margin-top: 23px;
}
.header-container {
  /* 首页-头部区域 */
  position: relative;
  width: 375px;
  height: 250px;
  background: url("~images/theme/header_bg.png") no-repeat;
  background-size: 100% 100%;
  .left-search_btn {
    position: absolute;
    top: 27px;
    left: 19px;
    display: grid;
    place-items: center;
    color: var(--color-white);
    width: 24px;
    height: 24px;
    font-size: 18px;
    font-weight: bold;
    img{
      width: 100%;
      height: 100%;
    }
  }
  .right-user_info {
    position: absolute;
    display: flex;
    align-items: center;
    top: 24px;
    right: 20px;
    .user_name {
      font-size: 14px;
      font-weight: 600;
      color: var(--color-white);
      margin-right: 8px;
      font-family: #{$font-common-family};
    }
    .user_avatar {
      width: 30px;
      height: 30px;
      border-radius: 15px;
      img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 15px;
      }
    }
  }
  .statis_title {
    position: absolute;
    top: 79px;
    display: flex;
    font-size: 14px;
    font-family: #{$font-common-family};
    font-weight: 400;
    color: #9DAED0;
    span {
      &:first-child {
        margin-left: 20px;
      }
      &:nth-child(2) {
        margin-left: 61px;
      }
    }
  }
  .leave-total-icon {
    position: absolute;
    top: 121px;
    left: 20px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .leave-total-text {
    @include abs-vertical-center;
    left: 49px;
    width: 21px;
    height: 48px;
    font-size: 48px;
    font-family: JCHEadA;
    color: var(--color-white);
  }
  .not-total-icon {
    position: absolute;
    top: 121px;
    left: 110px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .not-total-text {
    @include abs-vertical-center;
    left: 139px;
    width: 81px;
    height: 48px;
    font-size: 48px;
    font-family: JCHEadA;
    color: #ffffff;
    line-height: 48px;
  }
  .tab-bar_container {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 16px;
    left: 0;
    height: 46px;
    width: 100%;
    padding: 0 92px;
    .item {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center; 
      .item-icon {
        display: grid;
        place-items: center;
        width: 20px;
        height: 20px;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .item-text {
        margin-top: 12px;
        font-size: 14px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #8C9EC5;
      }
    }
  }
  .tab-bar_container_active {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 16px;
    left: 0;
    height: 46px;
    width: 100%;
    padding: 0 92px;
    .item {
      display: flex;
      flex-direction: column;
      .item-icon {
        width: 20px;
        height: 20px;
        color: #ffffff;
        margin-bottom: 12px;
      }
      .item-text {
        font-size: 14px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #ffffff;
      }
    }
  }
  /* active */
  .tab-bar-active_1 {
    position: absolute;
    top: 173px;
    left: 73px;
    z-index: 1000;
    width: 60px;
    height: 90px;
    background: #ffffff;
    box-shadow: 0px 4px 16px 0px rgba(0, 33, 112, 0.1);
    border-radius: 10px;
  }
  .tab-bar-active_2 {
    position: absolute;
    top: 173px;
    left: 158px;
    z-index: 1000;
    width: 60px;
    height: 90px;
    background: #ffffff;
    box-shadow: 0px 4px 16px 0px rgba(0, 33, 112, 0.1);
    border-radius: 10px;
  }
  .tab-bar-active_3 {
    position: absolute;
    top: 173px;
    right: 72px;
    z-index: 1000;
    width: 60px;
    height: 90px;
    background: #ffffff;
    box-shadow: 0px 4px 16px 0px rgba(0, 33, 112, 0.1);
    border-radius: 10px;
  }
  .tab-bar-active_1,
  .tab-bar-active_2,
  .tab-bar-active_3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    height: 90px;
    box-shadow: 0px 4px 16px 0px rgba(0, 33, 112, 0.1);
    border-radius: 10px;
    background-color: #ffffff;
    padding: 15px 0 12px 0;
    .item-icon {
      display: grid;
      place-items: center;
      width: 20px;
      height: 20px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .item-name {
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #002170;
      margin: 12px 0;
    }
    .item-bottom-line {
      width: 10px;
      height: 2px;
      background-color: #136fd1;
    }
  }
}
